package com.pig4cloud.pig.admin.mq.dto;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * mq
 * @author lh
 */
@Data
@NoArgsConstructor
public class DeviceCommand<T> {
    private String deviceId;
    private String type;
    private String cmdType;
    private T data;

    public DeviceCommand(String deviceId, String type, String cmdType, T data) {
        this.deviceId = deviceId;
        this.type = type;
        this.cmdType = cmdType;
        this.data = data;
    }

}
